<?php
defined('BASEPATH') OR exit('No direct script access allowed');



/**
检查用户权限
**/
if ( ! function_exists('ckuserlevel')){

	function ckuserlevel($level=1){
		$CI =& get_instance();
		$userlev=$CI->session->userlev;	
		if($userlev && $userlev<=$level){
			return true;
		}else{
			return false;
		}
	}

}


